﻿je_elbian_confederation = {
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	complete = {
		cu:north_german = {
			NOT = { culture_is_discriminated_in = ROOT }
		}
	}

	on_complete = {
		trigger_event = {
			id = elbian_confederation.1
		}
	}

	fail = {
		cu:north_german = {
			culture_secession_progress = {
				target = ROOT
				value > 0.5
			}
		}
	}

	on_fail = {
		set_variable = elbian_confederation_fail
		trigger_event = {
			id = elbian_confederation.1
		}
	}

	on_monthly_pulse = {
		effect = {
			if = {
				limit = {
					NOT = { has_law = law_type:law_racial_segregation }
					is_player = no
					year >= 1849
				}
				activate_law = law_type:law_racial_segregation
			}
		}
	}

	invalid = {
		custom_tooltip = {
			text = elbian_confederation_invalid
			NOT = {
				any_scope_state = {
					state_region = {
						is_homeland = cu:north_german
					}
				}
			}
		}
	}

	weight = 100
	should_be_pinned_by_default = yes
}
